luci-proto-sstp: add support for custom port (#6634)
authorVladislav Grigoryev <[email protected]>
Mon, 4 Dec 2023 21:26:01 +0000 (00:26 +0300)
committerGitHub <[email protected]>
Mon, 4 Dec 2023 21:26:01 +0000 (22:26 +0100)
Add support for connecting to a custom SSTP port.
See also: https://github.com/openwrt/packages/pull/22405

Signed-off-by: Vladislav Grigoryev <[email protected]>
protocols/luci-proto-sstp/htdocs/luci-static/resources/protocol/sstp.js

index 6a23407b50950f31ac1970057130c0efe804b58c..f58f553c36a07ce71764ab9fc375ba41906eae07 100644 (file)
@@ -41,6 +41,10 @@ return network.registerProtocol('sstp', {
                o = s.taboption('general', form.Value, 'server', _('SSTP Server'));
                o.datatype = 'host';
 
+               o = s.taboption('general', form.Value, 'port', _('SSTP Port'));
+               o.placeholder = '443';
+               o.datatype = 'port';
+
                o = s.taboption('general', form.Value, 'username', _('PAP/CHAP username'));
 
                o = s.taboption('general', form.Value, 'password', _('PAP/CHAP password'));